import http from '@/utils/http'


export function login(data) {
    return http({
        url: '/tianti_module_interface/user/login',
        method: 'post',
        data
    })
}

export function getPhoneCode(data) {
    return http({
        url: '/tianti_module_interface/verificate/code',
        method: 'post',
        data
    })
}
export function register(data) {
    return http({
        url: '/tianti_module_interface/user/reg',
        method: 'post',
        data
    })
}
export function resetPassword(data) {
    return http({
        url: '/tianti_module_interface/user/forget/pwd',
        method: 'post',
        data
    })
}
export function getInfo(data) {
    return http({
        url: '/tianti_module_interface/user/geUserbyToken',
        method: 'post',
        data
    })
}


export function setInfo(data) {
    return http({
        url: '/tianti_module_interface/user/updateUser',
        method: 'post',
        data
    })
}



//Get 案例
export function getInfoList() {
    return http({
        url: '/tianti_module_interface/cms/api/test3/',
        method: 'get',
        params: { str: 0 }
    })
}